Fix the DISPLAY configration that breaks vmx domain creation with SDL
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 1 Nov 2005 09:31:25 +0000 (10:31 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 1 Nov 2005 09:31:25 +0000 (10:31 +0100)
on vncserver or remote X. Changeset 7547 added a test of
opts.vals.display when getenv("DISPLAY"); because there is a default
value:localhost:0, that causes the test always to be true.

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
tools/python/xen/xm/create.py

index 5bdb8ebf00f0fe856e43a904439bb878b8d1b009..d844b2044c0a4514cd740f69712c04988abfe89e 100644 (file)
@@ -376,7 +376,7 @@ gopts.var('sdl', val='',
           use="""Should the device model use SDL?""")
 
 gopts.var('display', val='DISPLAY',
-          fn=set_value, default='localhost:0',
+          fn=set_value, default=None,
           use="X11 display to use")